<%-- 
    Document   : PagFormMarca
    Created on : 24/10/2012, 01:01:23
    Author     : Rodrigo
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <%@include file="/menu.jsp" %>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Cadastro :: Marca</title>
    </head>
    <body>
        <h1>Cadastro de Marca</h1>
        
        <form name="formMarca" method="post" action="CtrlProduto">
            
            <%
                String opcao = (String) request.getAttribute("opcao");
                
                long idMarca = 0;
                String nome = "";
                String eMail = "";
                
                if(opcao.equals("alterar")){
                    idMarca = Integer.parseInt(request.getParameter("idAtual"));
                    nome = (String) request.getAttribute("nome");
                    eMail = (String) request.getAttribute("eMail");
                }
            %>
            <input type="hidden" name="janela" id="janela" value="FormMarca"/>
            <input type="hidden" name="opcao" id="opcao" value="<%= opcao%>"/>
            <input type="hidden" name="idMarca" id="idMarca" value="<%= idMarca%>"/>
            Nome:
            </br>
            <input name="nome" type="text" size="15" value="<%= nome%>"/>
            </br>
            E-mail:
            </br>
            <input name="eMail" type="text" value="<%= eMail%>"/>
            </br>
            <input name="ok" type="submit" value="Ok!"/>  <input name="reset" type="reset" value="Limpar"/>
        </form>
    </body>
</html>
